CREATE TABLE [dbo].[ReportBaseObject]
(
[Id] [int] NOT NULL IDENTITY(1, 1),
[WordBookmarkId] [int] NULL,
[BookmarkGroupId] [int] NULL,
[Name] [varbinary] (max) NOT NULL,
[DateCreated] [datetime] NOT NULL,
[Visible] [bit] NOT NULL,
[Deleted] [bit] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
ALTER TABLE [dbo].[ReportBaseObject] ADD
CONSTRAINT [FK_ReportBaseObject_BookmarkGroup] FOREIGN KEY ([BookmarkGroupId]) REFERENCES [dbo].[BookmarkGroup] ([Id])
ALTER TABLE [dbo].[ReportBaseObject] ADD
CONSTRAINT [FK_ReportBaseObject_WordBookmark] FOREIGN KEY ([WordBookmarkId]) REFERENCES [dbo].[WordBookmark] ([Id])

GO
ALTER TABLE [dbo].[ReportBaseObject] ADD CONSTRAINT [PK_ReportBaseObject] PRIMARY KEY CLUSTERED  ([Id]) ON [PRIMARY]
GO
